package com.chanyachting.emall.service;

import java.util.List;

import com.chanyachting.emall.domain.Company;
import com.chanyachting.emall.domain.Joblist;
import com.chanyachting.emall.domain.Recruitmentinformation;

/**
 * 招聘信息操作接口
 * @author robert
 *
 */
public interface RecruitmentinformationService {
	
	public static final String JOBLLIST_IN_SESSION="JOBLLIST_IN_SESSION";
	
	//创建招聘信息
	public boolean createRecruitmentinformation(Recruitmentinformation ri);
	
	//删除招聘信息
	public boolean delRecruitmentinformation(Recruitmentinformation ri);
	
	//修改招聘信息
	public boolean updateRecruitmentinformation(Recruitmentinformation ri);
	
	//发布招聘信息
	public boolean publishRecruitmentinformation(Recruitmentinformation ri);
	
	//不公开招聘信息
	public boolean displayRecruitmentinformation(Recruitmentinformation ri);
	
	//刷新招聘信息
	public boolean refreshRecruitmentinformation(Recruitmentinformation ri);
	
	//获得一个招聘信息对象
	public Recruitmentinformation getOneRecruitmentinformation(Recruitmentinformation ri);
	
	//获得所有招聘信息对象
	public List<Recruitmentinformation> getAllRecruitmentinformation();
	
	//获得指定公司的所有招聘信息对象
	public List<Recruitmentinformation> getAllRecruitmentinformationByCompany(Company company);
	
	//获得指定公司的所有已公开招聘信息对象
	public List<Recruitmentinformation> getAllPublishRecruitmentinformationByCompany(Company company);
	
	//获得指定公司的所有未公开招聘信息对象
	public List<Recruitmentinformation> getAllDisplayRecruitmentinformationByCompany(Company company);

	//添加招聘岗位
	public boolean addJobList(Joblist job);
	
	//删除招聘岗位
	public boolean deleteJobList(Joblist job);
	
	//取得公司招聘信息
	public List getCompanyInformation();
	
	//获取指定的招聘信息
	public Joblist getJobList(String rid,String jobId);
	
	public List<Recruitmentinformation> getRecruitmentInfByPage(int currentPage,int pageSize);
	
	public int getRecruitmentInfCount();
}
